﻿<%@ Page Title="" Language="C#" MasterPageFile="~/OneColumn.Master" AutoEventWireup="true"
    CodeBehind="StaffList.aspx.cs" Inherits="KCL.Organization.StaffList" %>

<asp:Content ID="Content1" ContentPlaceHolderID="PageTitle" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="PageHeader" runat="server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="MainContent" runat="server">
    <asp:GridView ID="gridStaffList" runat="server" AllowPaging="True" AutoGenerateColumns="False"
        DataKeyNames="id" OnRowDeleting="RowDeleting">
        <Columns>
            <asp:TemplateField>
                <HeaderTemplate>
                    <asp:Label ID="txtTitleSTT" runat="server" Text="STT"></asp:Label>
                </HeaderTemplate>
                <ItemTemplate>
                    <asp:Label ID="txtSTT" runat="server" Text='<%# Eval("id") %>'></asp:Label>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField>
                <HeaderTemplate>
                    <asp:Label ID="txtTitleFullName" runat="server" Text="Họ và tên"></asp:Label>
                </HeaderTemplate>
                <ItemTemplate>
                    <asp:Label ID="txtFullName" runat="server" Text='<%# Eval("fullname") %>'></asp:Label>&nbsp;&nbsp;
                    <asp:LinkButton ID="btnDelete" runat="server" CommandArgument='<%# Eval("id") %>'
                        CommandName="Delete">Delete</asp:LinkButton>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField>
                <HeaderTemplate>
                    <asp:Label ID="txtTitleCode" runat="server" Text="Mã nhân viên"></asp:Label>
                </HeaderTemplate>
                <ItemTemplate>
                    <asp:Label ID="txtCode" runat="server" Text='<%# Eval("code") %>'></asp:Label>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField>
                <HeaderTemplate>
                    <asp:Label ID="txtTitleEmail" runat="server" Text="Email"></asp:Label>
                </HeaderTemplate>
                <ItemTemplate>
                    <asp:Label ID="txtEmail" runat="server" Text='<%# Eval("email") %>'></asp:Label>
                </ItemTemplate>
            </asp:TemplateField>
        </Columns>
    </asp:GridView>
</asp:Content>
